package com.example.a12138.myapplication.presenter;

import android.content.Context;

import com.example.a12138.myapplication.http.MyDataManager;
import com.xdw.mvp.presenter.BasePresenter;

public class UserPresenter extends BasePresenter {
    private Context context;

    public UserPresenter(Context context){
        this.context=context;
    }

    public void login(String username,String password){
        commitSubscription(context,MyDataManager.getInstance(context).login(username, password),true);
    }
}
